function generateList(list){
	var listString = list+'';
	if (listString == ''){
		return;
	}
	var arrayComponents = listString.split(',');
	var result = '';
	for(i=0; i<arrayComponents.length;i++){
		result +=generateCheckComponent(arrayComponents[i], arrayComponents[i+1]);
		i=i+1;
	}
	document.getElementById("jscheckcontainer").innerHTML = result;
}

function generateCheckComponent(name, q){
//	var result =  '<input type="checkbox" name="checkbox" id="name" checked="no" onclick=stateChange(\''+name+'\')> '+name +'  '+q+' </input>';
//	var result =  '<input type="checkbox" name="checkbox" checked="no" value="buu" onclick=stateChange(\''+name+'\')>';
	
	return '<span id="'+name+'"> <input type="checkbox" onclick="strikeText(\''+name+'\', this.checked);"> '+name +' '+ q+' </input></span> <br> </br>';
}

function strikeText(el, doIt) {
	if (typeof el == 'string') el = document.getElementById(el);
	el.style.textDecoration = (doIt)? 'line-through':'';
}